# encoding: utf-8
# @File   : main.py
# @Author : 乖孩子
# @Date   : 2025/07/24 16:29:19

import tkinter as tk
from ui.main_menu import MainMenu
from utils.logger import setup_logger, LogCollector

# 初始化全局日志系统
global_logger = setup_logger("SmartPointManager")
log_collector = LogCollector()

def main():
    global_logger.info("程序启动")
    root = tk.Tk()
    app = MainMenu(root, global_logger, log_collector)
    root.mainloop()

if __name__ == "__main__":
    main()